package com.silverbox.shopper.mapper;

import com.silverbox.shopper.entity.ShopperExtend;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

public interface ShopperExtendMapper {
    int deleteByPrimaryKey(Long id);

    int insert(ShopperExtend record);

    int insertSelective(ShopperExtend record);

    ShopperExtend selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(ShopperExtend record);

    int updateByPrimaryKey(ShopperExtend record);
    
    /**
     * 根据门店id获取店铺扩展信息
     * @param storeId
     * @return
     */
    ShopperExtend selectByStoreId(@Param("storeId") Integer storeId);

    Map<String, Object> getBusinessTime(@Param("storeId") Integer storeId);

    Object findShopperConfigByShopperId(@Param("storeId") Integer storeId,@Param("propName") String propName);

}